package com.sh.责任链模式.one;

/**
 * @author sh
 */
public class DepartmentApprover extends Approver {
    public DepartmentApprover(String name){
        super(name);
    }
    @Override
    public void processApprover(ApproverRequest approveRequest) {
        if ( approveRequest.getPrice() <=5000 ) {
            System.out.println( "请求编号： "+approveRequest.getId() + "  被  "+ this.name +"   处理了");
        }else{
            next.processApprover(approveRequest);
        }
    }

}
